<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@ taglib prefix="s" uri="/struts-tags" %>
<%
	response.setHeader("Pragma","No-cache"); 
	response.setHeader("Cache-Control","no-cache"); 
	response.setDateHeader("Expires", 0); 
%>
<div>
	<div class='right'><button id='refresh-log'>刷新</button></div>
	<div class='left strong'>最近加入橱窗推荐的宝贝：</div>
</div>
<table class="listing-logs" pages='<s:property value="pagingItems.totalPages" />' 
	pageIndex='<s:property value="pagingItems.currentPage" />'>
	<thead>
		<tr>
			<th>主图</th>
			<th>基本信息</th>
			<th>下架时间</th>
			<th>推荐时间</th>
			<th>出错信息</th>
		</tr>
	</thead>
	<tbody>
		<s:iterator value="items">
			<tr class="drow" num_iid='<s:property value="numIid"/>'>
				<td class='main-pic'>
					<a href='http://item.taobao.com/item.htm?id=<s:property value="numIid"/>' target="_blank">
						<img class="pic" src='<s:property value="picUrl"/>_80x80.jpg'/>
					</a>
				</td>
				<td class="item-details">
					<div><s:property value="title"/></div>
				</td>
				<td>
					<div><s:date name="delistTime" format="M月d日  HH:mm"/></div>
				</td>
				<td>
					<div><s:date name="recommendTime" format="M月d日 HH:mm"/></div>
				</td>
				<td>
					<div <s:if test="msg != null">class='error'</s:if>><s:property value="msg"/></div>
				</td>
			</tr>
		</s:iterator>
	</tbody>
</table>
<script type="text/javascript">
<!--
	$('#refresh-log').button().click(function(){
		$( "#tabs" ).tabs('load', 1);
	});
//-->
</script>